package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.WxAccountFirmVerification;
import com.tyqx.hashchainbiz.service.WxAccountFirmVerificationService;
import com.tyqx.hashchaindao.mapper.WxAccountFirmVerificationMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hashchain-spring
 * @description:
 * @author: Mr.Li
 * @create: 2020-10-30 15:01
 **/
@Service("wxAccountFirmVerificationService")
public class WxAccountFirmVerificationServiceImpl implements WxAccountFirmVerificationService {


    @Resource
    private WxAccountFirmVerificationMapper wxAccountFirmVerificationMapper;


    @Override
    public int insert(WxAccountFirmVerification wxAccountFirmVerification) {
        return wxAccountFirmVerificationMapper.insert(wxAccountFirmVerification);
    }

    @Override
    public int batchInsert(List<WxAccountFirmVerification> wxAccountFirmVerificationList) {
        return wxAccountFirmVerificationMapper.insertBatch(wxAccountFirmVerificationList);
    }

    @Override
    public int insertReturnId(WxAccountFirmVerification wxAccountFirmVerification) {
        return wxAccountFirmVerificationMapper.insertReturnId(wxAccountFirmVerification);
    }

    @Override
    public List<WxAccountFirmVerification> queryByAccountFirmId(Integer accountFirmId) {
        return wxAccountFirmVerificationMapper.queryByAccountFirmId(accountFirmId);
    }

    @Override
    public List<WxAccountFirmVerification> queryByToAccountFirmId(Integer toAccountFirmId) {
        return wxAccountFirmVerificationMapper.queryByToAccountFirmId(toAccountFirmId);
    }

    @Override
    public int updateStatus(Integer id, String status) {
        return wxAccountFirmVerificationMapper.updateStatus(id,status);
    }
}
